﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ECommerce.Model.Personas
{
    public class Cliente : Persona
    {
        public override void Load(System.Data.DataRow dr)
        {
            base.Load(dr);
            ECommerce.Factory.Personas.Cliente.Load(this, dr);
            ECommerce.DAO.Cache.Personas.Cliente.SetCliente(this);
        }
        public override void Save()
        {
            base.Save();
            this.Id = ECommerce.DAO.SQL.Personas.Cliente.SetCliente(this);
            this.Id = ECommerce.DAO.Cache.Personas.Cliente.SetCliente(this);
        }
    }
}
